import { defineStore } from "pinia";

export const useUsersStore3 = defineStore("search", {
  state() {
    return {
      searchValue: "",
      isRusultShow: false,
      //历史记录
      historys: [],
    };
  },
  actions: {
    Searchclick(val) {
      this.searchValue = val;
    },
    onSearch1(item) {
      this.searchValue = item;
      this.isRusultShow = true;
    },
  },
});
